import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SRobIslandPetUpdate
    
    export  class SRobIslandPetUpdate extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SRobIslandPetUpdate();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.petId);
            arg1.writeInt(this.lockPet);
            arg1.writeBool(this.notice);
            arg1.writeString(this.fightAttributeStr);
            arg1.writeString(this.petInfoStr);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.petId = arg1.readInt();
            this.lockPet = arg1.readInt();
            this.notice = arg1.readBool();
            this.fightAttributeStr = arg1.readString();
            this.petInfoStr = arg1.readString();
            return;
        }

        public /* const */_type: int=967;

        public /* var */petId: int;

        public /* var */lockPet: int;

        public /* var */notice: Boolean;

        public /* var */fightAttributeStr: string;

        public /* var */petInfoStr: string;

        public static /* var */_regist: SRobIslandPetUpdate;
    }

            SRobIslandPetUpdate._regist = new SRobIslandPetUpdate(true);
        